﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Montezuma
{
    class Inimigo
    {
        public Texture2D textura;
        public Vector2 posicao;
        public Rectangle retangulo;
        public float rotacao = 0;
        public Vector2 eixo = Vector2.Zero;
        public int largura;
        public int altura;
        public bool ativo = true;

        public Inimigo(Texture2D textura, Vector2 posicao)
        {
            this.textura = textura;
            this.posicao = posicao;   
        }

        public virtual void Update(GameTime gameTime)
        {
            
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(textura, new Rectangle((int)posicao.X, (int)posicao.Y, largura, altura), new Rectangle(0, 0, textura.Width, textura.Height), Color.White, rotacao, eixo, SpriteEffects.None, 0);
        }
    }
}
